/**
 * LetterFactory.java | Created on 30 08 2010
 */
package com.pacm.util;

import com.pacm.letter.*;

/**
 * The letter factory
 *
 * @author Paul Augustine C. Mendoza
 */
public final class LetterFactory {

    private LetterFactory() {
        // Do nothing...
    }

    public static Letter getLetterWithSize(LetterType letterType, int size) {
        Letter letter;
        switch (letterType) {
            case LETTER_X: {
                letter = new LetterX(size);
                break;
            }
            case LETTER_Y: {
                letter = new LetterY(size);
                break;
            }
            case LETTER_Z: {
                letter = new LetterZ(size);
                break;
            }
            default:
                letter = new UnsupportedLetter(size);
        }
        letter.buildLetter();
        return letter;
    }
}
